package com.wedata.中台服务;



import cn.hutool.crypto.digest.MD5;
import com.alibaba.fastjson2.JSONObject;

import java.io.IOException;

public class 系统秘钥生成工具 {

    public static void main(String[] args) throws IOException {
        //yy1(System.currentTimeMillis());
        yy2();
        //String str = MD5.create().digestHex("orderNum=6921075086439945676#5601291336c76762f1d56ce5b45b2419");
        /*String str = MD5.create().digestHex("yanglin");
        System.out.println(str);*/

    }
    /**
     * 签名加解密
     */
    public static void yy1(Long time){
        System.out.println(time);
        //1692587634583
        //  87375206677


        //1c84aa40ef8d6c2527966a5915b3ddc9
        System.out.println(MD5.create().digestHex("btw"+time));
    }

    /**
     * 签名加解密
     */
    public static void yy2(){

        //openapi  :  87075510001
        /*JSONObject jsonObject = JSONObject.parseObject("{\"accountNo\":\"6230584000004086121\"}");
        String sign = MD5.create().digestHex(jsonObject+"#uy87s9af0b6c3c88971b83812e4a45y1");
        System.out.println(sign);*/

        //支付中心  ：
        /*JSONObject jsonObject = JSONObject.parseObject("{\"payOrderId\":\"81ed99a63ceb4b2b96fc5895c7e31f7a\",\"bizOrderId\":\"jm-yys4401518000259668\"}");
        String sign = MD5.create().digestHex(jsonObject+"#uy87s9af0b6c3c88971b83812e4a45y1");
        System.out.println(sign);*/

        //标签服务  59959196536	betterwe	c059497b1d91746eb59451484e8cabca
        /*JSONObject jsonObject = JSONObject.parseObject("{\"uid\":1,\"pageNum\":1,\"pageSize\":10}");
        String sign = MD5.create().digestHex(jsonObject+"#c059497b1d91746eb59451484e8cabca");
        System.out.println(sign);*/

        //用户中心  48476521309
        JSONObject jsonObject = JSONObject.parseObject("{\"from_source\":\"gym3\",\"from_source_uid\":169618,\"to_source\":\"shop\",\"areacode\":\"86\",\"source\":\"gym3\"}");
        System.out.println(jsonObject+"#6468de1df04183da269b2649f0734aa5");
        String sign = MD5.create().digestHex(jsonObject+"#6468de1df04183da269b2649f0734aa5");
        System.out.println(sign);

    }


}


